//
//  CMDBEnumType.swift
//  CMDB
//
//  Created by 曹桂祥 on 17/4/13.
//  Copyright © 2017年 CMDB. All rights reserved.
//

import Foundation

enum ItemClickType : String{
    
    case HomeTopicLike
    
    case HomeTopicCollect
    
    // tapOnView
    case TapOnView
    
    // tableCell的点击
    case TableViewCellClick
    
    // 发布时添加图片按钮的点击
    case AddPhotoClick
    
    // collectionViewCell点击
    case CollectionViewCellClick
    
    // tableViewDelete
    case DeleteCell
    
    // 资料库筛选条件点击
    case DataBaseConditionBtnClick
    
    // 显示全部筛选条件
    case DataBaseConditionShowArrowBtnClick
    
    init(string: String) {
        switch string {
            
        //tapOnView
        case "TapOnView":
            self = .TapOnView
        
        //tableViewClick
        case "TableViewCellClick":
            self = .TableViewCellClick
            
        // 发布时添加图片按钮的点击
        case "AddPhotoClick":
            self = .AddPhotoClick
        
        // collectionViewCell点击
        case "CollectionViewCellClick":
            self = .CollectionViewCellClick
        
        // HomeTopicLike
        case "HomeTopicLike":
            self = .HomeTopicLike
        
        case "DeleteCell":
            self = .DeleteCell
        
        // 资料库点击条件
        case "DataBaseConditionBtnClick":
            self = .DataBaseConditionBtnClick
            
        case "DataBaseConditionShowArrowBtnClick":
            self = .DataBaseConditionShowArrowBtnClick
            
            
        default:
            fatalError("Unknown or unsupported string ---- \(string)")
        }
    }
}


